package cn.edu.jxau.test;

public class Pet {
    
    private String name;
    
    public Pet(String name) {
        this.name = name;
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    @Override
    public String toString() {
        return String.format("I'm a %s,and my name is %s",this.getClass().getName(),name);
    }
}
